<h1>Rutas List</h1>

<table>
  <thead>
    <tr>
      <th>Id ru</th>
      <th>Id co</th>
      <th>Salida</th>
      <th>Llegada</th>
      <th>Tipo ruta</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($rutas as $ruta): ?>
    <tr>
      <td><a href="<?php echo url_for('consulta/show?id_ru='.$ruta->getIdRu()) ?>"><?php echo $ruta->getIdRu() ?></a></td>
      <td><?php echo $ruta->getIdCo() ?></td>
      <td><?php echo $ruta->getSalida() ?></td>
      <td><?php echo $ruta->getLlegada() ?></td>
      <td><?php echo $ruta->getTipoRuta() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('consulta/new') ?>">New</a>
